<?php
        class search extends model {
           
           function view(){ 
           
          $arraynewdata= $this->getdefault();
          
          
          $arraynewdata['searchtext'] =urldecode($this->info['parameter'][0]); 
          
           if($_GET)
           {
           foreach($_GET as $keyget =>$valueget)
           {
           
           $arraynewdata[$keyget]=$valueget;
           
           }
           
           }
          
//          echo "<pre>";
//          print_r($_SERVER);
//          echo "</pre>;";
//          
//          echo "<pre>";
//          print_r($this->info['parameter']);
//          echo "</pre>;";
//          exit;
          $this->loadtemplate('submain',$arraynewdata);  
           }
        
        
        }
?>
